from django import template
from django.template.defaultfilters import stringfilter
from django.utils.safestring import mark_safe

register = template.Library()


@register.filter(name='phone_filter')
@stringfilter
def hidden(value):
    return str(value)[0:3]+'****'+str(value)[7:]
